#ifndef __KP_H
#define __KP_H
#include "onlinestor.h"
extern "C" {
	#include "kpfs_api.h"
}

class KPOnlineStorage
	:OnlineStorage
{
	public:
	virtual int connect();
	virtual void disconnect();
	virtual int get(const char* pathname,char* buffer,size_t size);
	virtual int put(const char* pathname,const char* buffer,size_t size);
	virtual int del(const char* pathname);
	virtual int mkdir(const char* path,const char* name);
	virtual int rmdir(const char* path,const char* name);
	virtual int lsdir(const char* path,const char* name);
	virtual struct NetFile* lsdir(const char* path,OUT int* size /* numbner of struct NetFile */);
	virtual int move(const char* oldPath,const char* newPath);
	virtual int freespace() ;
};

#endif
